package com.xhu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xhu.common.vo.chance.manage.vo.ChanceManageDistributeVo;
import com.xhu.common.vo.chance.manage.vo.ChanceManageInsertVo;
import com.xhu.pojo.ChanceManage;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

public interface ChanceManageService extends IService<ChanceManage>{


    IPage<ChanceManage> getAllByPage(int current, int size);

    IPage<ChanceManage> getAllByEmpNameToPage(String name, int current, int size);

    void deleteById(String id);

    void updateOneById(ChanceManage entity, HttpServletRequest request);

    void insertOne(ChanceManageInsertVo entity);

    ChanceManageDistributeVo  getSingleChanceInfo(String id);

    void distribute(ChanceManageDistributeVo voEntity);
}
